package com.choupin.choupin.admin.mapper;

import com.choupin.choupin.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManageUserMapper {

//    查询用户信息
    User selectUsersToPhone(String phone);

    List<User> selectAllUser(@Param("currentPage") Integer currentPage,
                       @Param("pageSize") Integer pageSize);

    List<User> selectUsers(@Param("id") Integer id,
                           @Param("idStr") String idStr,
                           @Param("phone") String phone,
                           @Param("nickname") String nickname,
                           @Param("currentPage") Integer currentPage,
                           @Param("pageSize") Integer pageSize
    );

    Integer update(@Param("phone") String phone,
                   @Param("isDelete")Integer isDelete,
                   @Param("isDeleteStr") String isDeleteStr,
                   @Param("weight") Integer weight,
                   @Param("weightStr") String weightStr,
                   @Param("memberId") Integer memberId,
                   @Param("memberIdStr") String memberIdStr,
                   @Param("isVip") Integer isVip
    );

}
